var express = require('express');
var router = express.Router();
var newsCtl=require("../controls/user/news")

/* GET users listing. */
// 未测试
router.get("/getHomeNews",newsCtl.getHomeNews);

router.get("/getSwiperNews",newsCtl.getSwiperNews);
router.get("/getTypeNewHome",newsCtl.getTypeNewHome);

router.get("/getNewsdetail",newsCtl.getNewsdetail);
// router.get("/getNewsdetailUser",newsCtl.getNewsdetailUser);

router.post("/searchNews",newsCtl.searchNews);
router.get("/getThumbsupTotal",newsCtl.getThumbsupTotal);
router.get("/getCollectTotal",newsCtl.getCollectTotal);
// renderAddNews
router.get("/renderAddNews",newsCtl.renderAddNews);

module.exports = router;

